<body>
	<div class="container minh">
		<ol class="breadcrumb">
			<li class="breadcrumb-item">用户管理</li>
			<li class="breadcrumb-item active">新增用户</li>
		</ol>
		<form id="registerform" th:action="@{/console/register}" method="post" enctype="multpart/form-data" th:class=" p-2">
			<div class="form-group mb-3">
				<label for="articleTitle">用户名:</label> <input type="text" id="username" name="username" class="form-control" placeholder="请输入用户名" required autofocus>
			</div>

			<div class="form-group mb-3">
				<label for="articleTitle">昵称:</label> <input type="text" id="cname" name="cname" class="form-control" placeholder="请输入昵称" required autofocus>
			</div>
			<div class="form-group">
				<button type="button" class="btn btn-info btn-s pull-right ml-5 mr-3 mb-3" onclick="resetform()">取消</button>
				<button type="submit" class="btn btn-primary pull-right  mb-3">保存</button>
			</div>
		</form>
	</div>

	<script type="text/javascript">
		function resetform() {
			// jquery 没有reset方法
			document.getElementById("registerform").reset();
		}
	</script>
</body>